﻿using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
namespace EMC.VISITOR.Application;

    /// <summary>
    /// 人臉分組输出参数
    /// </summary>
    public partial class FaceGroupDto
    {
        /// <summary>
        /// 人臉分組唯一碼
        /// </summary>
        public string indexCode { get; set; }
        
        /// <summary>
        /// 分組名稱
        /// </summary>
        public string name { get; set; }
        
        /// <summary>
        /// 分組描述
        /// </summary>
        public string description { get; set; }
        
        /// <summary>
        /// Id
        /// </summary>
        public long Id { get; set; }
        
        /// <summary>
        /// 創建時間
        /// </summary>
        public DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 更新時間
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        
        /// <summary>
        /// 創建人
        /// </summary>
        public long? CreateUserId { get; set; }
        
        /// <summary>
        /// 修改人
        /// </summary>
        public long? UpdateUserId { get; set; }
        
    }

    
  /// <summary>
    /// 人臉分組导出导入
    /// </summary>
    [ExcelExporter(Name = "人臉分組", TableStyle = OfficeOpenXml.Table.TableStyles.None, AutoFitAllColumn = true,AutoCenter =true)]
    [ExcelImporter( IsLabelingError = true,SheetName ="人臉分組")]
    public partial class ExportImportFaceGroupDto
    {
        /// <summary>
        /// 人臉分組唯一碼
        /// </summary>
        [ExporterHeader(DisplayName = "人臉分組唯一碼", IsBold = true)]
        [ImporterHeader(Name = "人臉分組唯一碼")]
        public virtual string? indexCode { get; set; }
        
        /// <summary>
        /// 分組名稱
        /// </summary>
        [ExporterHeader(DisplayName = "分組名稱", IsBold = true)]
        [ImporterHeader(Name = "分組名稱")]
         [Required(ErrorMessage ="分組名稱为必填字段！")]
        public virtual string? name { get; set; }
        
        /// <summary>
        /// 分組描述
        /// </summary>
        [ExporterHeader(DisplayName = "分組描述", IsBold = true)]
        [ImporterHeader(Name = "分組描述")]
         [Required(ErrorMessage ="分組描述为必填字段！")]
        public virtual string? description { get; set; }
        
        /// <summary>
        /// 創建時間
        /// </summary>
        [ExporterHeader(DisplayName = "創建時間", IsBold = true)]
        [ImporterHeader(Name = "創建時間")]
        public virtual DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 更新時間
        /// </summary>
        [ExporterHeader(DisplayName = "更新時間", IsBold = true)]
        [ImporterHeader(Name = "更新時間")]
        public virtual DateTime? UpdateTime { get; set; }
        
        /// <summary>
        /// 創建人
        /// </summary>
        [ExporterHeader(DisplayName = "創建人", IsBold = true)]
        [ImporterHeader(Name = "創建人")]
        public virtual long? CreateUserId { get; set; }
        
        /// <summary>
        /// 修改人
        /// </summary>
        [ExporterHeader(DisplayName = "修改人", IsBold = true)]
        [ImporterHeader(Name = "修改人")]
        public virtual long? UpdateUserId { get; set; }
        
    }